

#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "StaffItem.h"

#ifndef SORTLISTCTRL_H
#include "SortListCtrl.h"
#endif	// SORTLISTCTRL_H

class StaffManagerDlg : public CDialog
{
// Construction
public:
	StaffManagerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_STAFF_MANAGER };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	CArray<CStaffItem, CStaffItem&> StaffItems;


// Implementation
protected:
	HICON m_hIcon;

	// Genertaed message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	//afx_msg void OnDestroy();
	DECLARE_MESSAGE_MAP()
public:
	CSortListCtrl	m_cListControl;
	afx_msg void OnBnClickedBtnAdd();
	CString m_result;
	afx_msg void OnNMDblclkListInfomation(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnBnClickedBtnSearch();
	void SearchID();
//	void UpdateDataBase(int i);
};
